#pragma once
#include "../drawopencv.h"
class CDrawSquaresTest :
	public CDrawOpenCV 
{
public:
	CDrawSquaresTest(void);
	virtual ~CDrawSquaresTest(void);
	DECLARE_MESSAGE_MAP()
public:
	// DealwithFrame
	virtual void DealwithFrame(void);
private:
	double Angle( CvPoint* pt1, CvPoint* pt2, CvPoint* pt0 );
	CvSeq* FindSquares4( IplImage* img, CvMemStorage* storage );
	void DrawSquares( IplImage* img, CvSeq* squares );

	int thresh;
	IplImage* img;
	IplImage* img0;
	CvMemStorage* storage;

};

